<?php namespace App\Infra;

use App\Utils\ModelOperatorTrait;
use App\Models\Clean;
class CleanManager{
	use ModelOperatorTrait;

	public function getCleans($conditions = null,$first = false,$union = []){
		return $this->findModel(Clean::class,Clean::query()->with($union),$conditions,$first);
	}

	public function updateClean($conditions = null,$data = null){
		$this->update(Clean::class,Clean::query(),$conditions,$data);
	}

	public function createClean($data){
		$this->create(Clean::class,$data);
	}

	public function deleteClean($conditions = null){
		$this->delete(Clean::class,Clean::query(),$conditions);
	}
}